<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set libmagic configuration options</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.finfo-open.html">finfo_open</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.mime-content-type.html">mime_content_type</a></div>
 <div class="up"><a href="ref.fileinfo.html">Fileinfo 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.finfo-set-flags" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">finfo_set_flags</h1>
  <h1 class="refname">finfo::set_flags</h1>
  <p class="verinfo">(PHP &gt;= 5.3.0, PECL fileinfo &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">finfo_set_flags</span> -- <span class="refname">finfo::set_flags</span> &mdash; <span class="dc-title">Set libmagic configuration options</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.finfo-set-flags-description">
  <h3 class="title">说明</h3>
  <p class="para">过程化风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>finfo_set_flags</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$finfo</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code></span>
   )</div>

  <p class="para rdfs-comment">面向对象风格</p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>finfo::set_flags</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code></span>
   )</div>


  <p class="para rdfs-comment">
   This function sets various Fileinfo options. Options can be set also
   directly in <span class="function"><a href="function.finfo-open.html" class="function">finfo_open()</a></span> or other Fileinfo functions.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.finfo-set-flags-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">finfo</code></em></dt>

     <dd>

      <p class="para">
       Fileinfo resource returned by <span class="function"><a href="function.finfo-open.html" class="function">finfo_open()</a></span>.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">options</code></em></dt>

     <dd>

      <p class="para">
       One or disjunction of more <a href="fileinfo.constants.html" class="link">Fileinfo
       constants</a>.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.finfo-set-flags-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>TRUE</code></strong>， 或者在失败时返回 <strong><code>FALSE</code></strong>。
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.finfo-open.html">finfo_open</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.mime-content-type.html">mime_content_type</a></div>
 <div class="up"><a href="ref.fileinfo.html">Fileinfo 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
